<template>
    <div id="vuexAddCount">
        <button @click="handleAdd">加一</button> vuexAddCount
    </div>
</template>
<script>
export default {
  name: "vuexAddCount",
  components: {},
  data() {
    return {};
  },
  methods: {
    handleAdd: function() {
      this.$store.commit("increment", 1);
    }
  }
};
</script>
<style scoped>
</style>